package sjsu.android;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.Spinner;
public class Alert extends Activity {
	Button  save,button2,button3;
	private RadioButton rb1,rb2;
	EditText text1;
	private String array_spinner[], time_spinner[];
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.alert);
        rb1=(RadioButton)findViewById(R.id.option1);
        rb2=(RadioButton)findViewById(R.id.option2);
        text1=(EditText)findViewById(R.id.EditText01);
        text1.setText("Do Workout");
        array_spinner=new  String[5];
               array_spinner[0]="Alarm";
               array_spinner[1]="SMS";
               array_spinner[2]="Beep";
               Spinner s = (Spinner) findViewById(R.id.Spinner01);
                ArrayAdapter adapter = new ArrayAdapter(this,
               android.R.layout.simple_spinner_item, array_spinner);
             s.setAdapter(adapter);
             time_spinner=new  String[5];
             time_spinner[0]="2 hr";
             time_spinner[1]="4 hr";
             time_spinner[2]="8 hr";
             Spinner t = (Spinner) findViewById(R.id.Spinner02);
              ArrayAdapter tAdapter = new ArrayAdapter(this,
             android.R.layout.simple_spinner_item, time_spinner);
           t.setAdapter(tAdapter);    
        
        save = (Button) findViewById(R.id.Button01);
        button2 = (Button) findViewById(R.id.Button02);
      
        save.setOnClickListener(new clicker());
        button2.setOnClickListener(new clicker());
       
    }
	class  clicker implements Button.OnClickListener {              
    	@Override
    	public void onClick(View v) {
    		if(v == save){ 
    	//	Intent intent = new Intent(mainmenu.this, CustomListView.class);
        	// startActivity(intent);
    	}}
	}
    
}


